package com.example.tbs.common;

/**
 * @author qujian
 * @version 1.0
 * @date 2018/10/11
 * @time 15:26
 * @email qj9498@gmail.com
 * @qq 56069397
 */
public enum ResponseCode {

    SUCCESS(200,"SUCCESS"),
    ERROR(500,"ERROR"),
    NO_DATA(-1,"NO_DATA"),
    BUSINESS_ERROR(300,"BUSINESS_ERROR"),
    NEED_LOGIN(10,"NEED_LOGIN"),
    ILLEGAL_ARGUMENT(2,"ILLEGAL_ARGUMENT");

    private final int code;

    private final String desc;

    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
